<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<script language="javascript" type="text/javascript" src="My97DatePicker/WdatePicker.js"></script>
<link rel="stylesheet" type="text/css" href="css/style.css" />
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<script>
	function yz(){
		var startDate=document.getElementById("startDate").value;
		var endDate=document.getElementById("endDate").value;
		
		if(startDate==""||endDate=="")
		{
		alert("请选择时间");
		return false;
		}else{
		return true;
		}
	}
</script>
</head>

<body>
<form id="form1" name="form1" method="post" action="cjgzrs.do" onsubmit="return yz();">
<input type="hidden" value="" name="falg" id="falg"/>
  参加工作时间：
  <input type="text" name="startDate" id="startDate"  class="SmallInput" onFocus="WdatePicker()" />
 至 
 <input type="text" name="endDate" id="endDate"  class="SmallInput" onFocus="WdatePicker()" />
 <input type="submit" name="button" id="button" value="查看统计表"  onclick="document.getElementById('falg').value='';"/>
 <input type="submit" name="button2" id="button2" value="查看统计图"  onclick="document.getElementById('falg').value=1;"/>
</form>
</body>
</html>
